import request from "@/utils/request";

const BASE_URL = "/api/v1/mall";

const merchantApi = {
  getList(data: any) {
    return request({
      url: `${BASE_URL}/getMerUserPage`,
      method: "post",
      data,
    });
  },

  getMerchantInfo(id: number) {
    return request({
      url: `/api/v1/company/mall/detail/${id}`,
      method: "get",
    });
  },
  undataInfo(data: any) {
    return request({
      url: `/api/v1/company/mall/detail/updateSort`,
      method: "post",
      data,
    });
  },
};

export default merchantApi;
